package com.wanxi.treeset;

import java.util.Set;
import java.util.TreeSet;

public class StudentTest {
    public static void main(String[] args) {
        Set<Student> set =new TreeSet<>();
        set.add(new Student("zhangsan",11));
        set.add(new Student("lisi",13));
        set.add(new Student("wangwu",17));
        set.add(new Student("lucyb",14));
        set.add(new Student("lucya",14));
        set.add(new Student("xiaoming",12));
        System.out.println(set);
    }
}
